import { createRouter, createWebHashHistory } from 'vue-router'
const routes = [
  {
    path: '/',
    name: 'home',
    meta: {
      title: '八字篇'
    },
    component: () => import('@views/home.vue')
  },
  {
    path: '/other/text',
    name: 'text',
    meta: {
      title: '易学助手'
    },
    component: () => import('@views/other/text.vue')
  },
  {
    path: '/liuyao/guaNameTest',
    name: 'guaNameTest',
    meta: {
      title: '卦名练习'
    },
    component: () => import('@views/liuyao/guaNameTest.vue')
  },
  {
    path: '/bazi/cangqiTest',
    name: 'cangqiTest',
    meta: {
      title: '藏气练习'
    },
    component: () => import('@views/bazi/cangqiTest.vue')
  },
  {
    path: '/liuyao',
    name: 'liuyao',
    meta: {
      title: '六爻篇'
    },
    component: () => import('@views/liuyao/index.vue')
  },
  {
    path: '/bazi/library/tgItemDetail',
    name: 'tgItemDetail',
    meta: {
      title: '日主天干个性状况'
    },
    component: () => import('@views/bazi/library/tgItemDetail.vue')
  },
  {
    path: '/bazi/library/shenSha',
    name: 'shenSha',
    meta: {
      title: '神煞'
    },
    component: () => import('@views/bazi/library/shenSha.vue')
  },
]

const router = createRouter({
  mode: 'hash',
  history: createWebHashHistory(),
  routes,
})

export default router
